package cn.bgs.Exception;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author Mr.JIA
 * @DATE 2021/7/30 0030 15:04
 * @PROJECT_NAME mybatis_phoenix
 * @PACKAGE_NAME cn.bgs.Exception
 */
public class PhoenixException extends Exception{
    private static final long serialVersionUID = 1L;

    private String code;
    private String msg;

    public PhoenixException() {
        super();
    }//无参构造

    public PhoenixException(String message) {
        super(message);
    }

    public PhoenixException(String code, String message) {
        this.code = code;
        this.msg = message;
    }

    public PhoenixException(String message, Throwable cause) {
        super(message, cause);
    }

    public PhoenixException(Throwable cause) {
        super(cause);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
